package com.ygqh.baby.service;
import java.util.List;

import  com.ygqh.baby.ao.QueryInfo;
import  com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.model.CouponUseDetailMode;
import  com.ygqh.baby.po.YgCouponUseDetail;
import com.ygqh.baby.po.YgUser;

public interface YgCouponUseDetailService {
    
    List<YgCouponUseDetail> find();
	int findCount();
	YgCouponUseDetail findById(Long id);
	int deleteSoft(Long[] ids);
	int deleteSoft(Long id);
	int save(YgCouponUseDetail ygCouponUseDetail );
	int update(YgCouponUseDetail ygCouponUseDetail);
	int saveOrUpdate(YgCouponUseDetail ygCouponUseDetail);
	ResultSet<YgCouponUseDetail> search(QueryInfo queryInfo,String q);
	
	
	YgCouponUseDetail findCouponUseDetailByOrderId(Long userId,String orderId);
	
	List<YgCouponUseDetail> findCouponUseDetailByShareUserId(Long userId,Long shareUserId);
    
	String saveUseCoupon(int selectId,Object[][] prizeArr, YgUser user, String orderId,YgUser shareUser);
	
	List<CouponUseDetailMode> findByOrderId(Long orderId);
}
